# Makefile for Scientific Computing         (\(\
# Jannis Teunnissen and Florian Speelman    (='.')
# Scientific Computing - spring 2010        o(_")")
 

CC = mpicc
CFLAGS = -O3 -std=gnu99
LDLIBS = -lm

all: matvec wave1d diff2d diffJac2d diffGS2d

diff2d: divideElems.o getDiffPars.o

diffJac2d: divideElems.o getDiffPars.o

diffGS2d: divideElems.o getDiffPars.o

wave1d: getWavePars.o divideElems.o

divideElems.o: divideElems.h

getDiffPars.o: getDiffPars.h

getWavePars.o: getWavePars.h

clean:
	rm -f *.o
	rm -f matvec
	rm -f wave1d
	rm -f diff2d
	rm -f diffGS2d
	rm -f diffJac2d
